/*  1:   */ package org.jetbrains.jps.model.java.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.util.Comparing;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.ex.JpsElementBase;
import org.jetbrains.jps.model.java.JpsJavaProjectExtension;
import org.jetbrains.jps.model.java.LanguageLevel;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */ 
/*  9:   */ public class JpsJavaProjectExtensionImpl
/* 10:   */   extends JpsElementBase<JpsJavaProjectExtensionImpl>
/* 11:   */   implements JpsJavaProjectExtension
/* 12:   */ {
/* 13:   */   private String a;
/* 14:   */   private LanguageLevel b;
/* 15:   */   
/* 16:   */   public JpsJavaProjectExtensionImpl() {}
/* 17:   */   
/* 18:   */   private JpsJavaProjectExtensionImpl(JpsJavaProjectExtensionImpl paramJpsJavaProjectExtensionImpl)
/* 19:   */   {
/* 20:35 */     this.a = paramJpsJavaProjectExtensionImpl.a;
/* 21:36 */     this.b = paramJpsJavaProjectExtensionImpl.b;
/* 22:   */   }
/* 23:   */   
/* 24:   */   @NotNull
/* 25:   */   public JpsJavaProjectExtensionImpl createCopy()
/* 26:   */   {
/* 27:42 */     void tmp8_5 = new JpsJavaProjectExtensionImpl(this);
/* 28:42 */     if (tmp8_5 == null) {
/* 29:42 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/java/impl/JpsJavaProjectExtensionImpl", "createCopy" }));
/* 30:   */     }
/* 31:42 */     return tmp8_5;
/* 32:   */   }
/* 33:   */   
/* 34:   */   public String getOutputUrl()
/* 35:   */   {
/* 36:46 */     return this.a;
/* 37:   */   }
/* 38:   */   
/* 39:   */   public void setOutputUrl(String paramString)
/* 40:   */   {
/* 41:50 */     if (!Comparing.equal(this.a, paramString))
/* 42:   */     {
/* 43:51 */       this.a = paramString;
/* 44:52 */       fireElementChanged();
/* 45:   */     }
/* 46:   */   }
/* 47:   */   
/* 48:   */   public LanguageLevel getLanguageLevel()
/* 49:   */   {
/* 50:57 */     return this.b;
/* 51:   */   }
/* 52:   */   
/* 53:   */   public void setLanguageLevel(LanguageLevel paramLanguageLevel)
/* 54:   */   {
/* 55:61 */     if (!Comparing.equal(this.b, paramLanguageLevel))
/* 56:   */     {
/* 57:62 */       this.b = paramLanguageLevel;
/* 58:63 */       fireElementChanged();
/* 59:   */     }
/* 60:   */   }
/* 61:   */   
/* 62:   */   public void applyChanges(@NotNull JpsJavaProjectExtensionImpl paramJpsJavaProjectExtensionImpl)
/* 63:   */   {
/* 64:69 */     if (paramJpsJavaProjectExtensionImpl == null) {
/* 65:69 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/java/impl/JpsJavaProjectExtensionImpl", "applyChanges" }));
/* 66:   */     }
/* 67:69 */     setLanguageLevel(paramJpsJavaProjectExtensionImpl.b);
/* 68:70 */     setOutputUrl(paramJpsJavaProjectExtensionImpl.a);
/* 69:   */   }
/* 70:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.java.impl.JpsJavaProjectExtensionImpl

 * JD-Core Version:    0.7.0.1

 */